using Nop.Core.Domain.Directory;

namespace Nop.Data.Mapping.Directory
{
    public partial class DepartmentMap : NopEntityTypeConfiguration<Department>
    {
        public DepartmentMap()
        {
            this.ToTable("Department");
            this.HasKey(c => c.Id);

            this.Property(p => p.Name).IsRequired().HasMaxLength(50);
            this.Property(p => p.Abbr).IsRequired().HasMaxLength(10);
        }
    }
}
